package com.lgh.springframework.context.event;

import com.lgh.springframework.context.ApplicationContext;
import com.lgh.springframework.context.ApplicationEvent;

/**
 * ******************************************************
 *
 * @author liugh9
 * @version 1.0
 * @classname ApplicationContextEvent
 * @description
 * @date 2023/03/01 21:24
 * <p>
 * ******************************************************
 */
public class ApplicationContextEvent extends ApplicationEvent {
    /**
     * Constructs a prototypical Event.
     *
     * @param source The object on which the Event initially occurred.
     * @throws IllegalArgumentException if source is null.
     */
    public ApplicationContextEvent(Object source) {
        super(source);
    }

    /**
     * Get the <code>ApplicationContext</code> that the event was raised for.
     */
    public final ApplicationContext getApplicationContext() {
        return (ApplicationContext) getSource();
    }
}
